import React, {FC, useContext} from 'react';
import "./index.less";
import {HxConfigContext} from "@/layouts/HxConfigContext";
import {correspVal} from "@/utils/biz";

interface PrivacyPolicyProps {
}

const PrivacyPolicy: FC<PrivacyPolicyProps> = (props) => {
  const {siteInfo, isZhCN} = useContext(HxConfigContext)
  return (
    <div className={"privacy-policy-container"}
         dangerouslySetInnerHTML={{__html: correspVal(isZhCN, siteInfo?.privacy.textCn, siteInfo?.privacy.textEn) || ""}}/>
  );
};

export default PrivacyPolicy;
